<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class AdminPageController extends CI_Controller {

	function __construct()
	{
		parent::__construct();
		$this->load->helper('url');
	}

	function index()
	{
		//$this->load->view('AdminPageView');
		/*$this->load->helper('download');
		$this->load->library('cezpdf');
		$pdf = new Cezpdf();
		$pdf->ezText('Michael!',50);
		//$pdf->ezStream();
		//force_download('asdf.pdf', $pdf->ezOutput()); */
		$db_data[] = array('name' => 'Jon Doe', 'phone' => '111-222-3333', 'email' => 'jdoe@someplace.com');
		$db_data[] = array('name' => 'Jane Doe', 'phone' => '222-333-4444', 'email' => 'jane.doe@something.com');
		$db_data[] = array('name' => 'Jon Smith', 'phone' => '333-444-5555', 'email' => 'jsmith@someplacepsecial.com');

		$col_names = array(
		'name' => 'Name',
		'phone' => 'Phone Number',
		'email' => 'E-mail Address'
		);

		$this->cezpdf->ezTable($table_data, $col_names, 'Contact List', array('width'=>550));
		$this->cezpdf->ezStream();
	}
}

/* End of file adminPageController.php */
/* Location: ./application/controllers/adminPageController.php */
?>